package com.base.handle;

import java.lang.reflect.InvocationHandler;
import java.lang.reflect.InvocationTargetException;
import java.lang.reflect.Method;

public  class ModleHandle implements InvocationHandler {
	
	private Object object;
	public  ModleHandle(Object object) {
		this.object = object;
	}
	@Override
	public Object invoke(Object proxy, Method method, Object[] args)
	{
	        Object rtValue = null;
            try {
				rtValue = method.invoke(object,args);
			} catch (IllegalAccessException | IllegalArgumentException | InvocationTargetException e) {
				// TODO Auto-generated catch block
				e.printStackTrace();
			}
	        return rtValue;
	}

}
